/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.team1160.breakaway.model;

/**
 *
 * @author nttoole
 */
public class PropertyChangeEvent {

    protected String name;
    protected Object oldValue;
    protected Object newValue;

    public PropertyChangeEvent(String name,
                               Object oldValue,
                               Object newValue)
    {
        this.name     = name;
        this.oldValue = oldValue;
        this.newValue = newValue;
    }

    public String getPropertyName()
    {
        return this.name;
    }

    public Object getOldValue()
    {
        return this.oldValue;
    }

    public Object getNewValue()
    {
        return this.newValue;
    }


    public String toString()
    {
        return this.getClass().getName() + "{" + this.name
                + "," + this.oldValue + "," + this.newValue
                + "}";
    }
}
